﻿<UserControl xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" 
    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
    mc:Ignorable="d" xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
    xmlns:esri="clr-namespace:ESRI.ArcGIS.Client;assembly=ESRI.ArcGIS.Client"  
    xmlns:esriSymbols="clr-namespace:ESRI.ArcGIS.Client.Symbols;assembly=ESRI.ArcGIS.Client"
    xmlns:esriToolkit="clr-namespace:ESRI.ArcGIS.Client.Toolkit;assembly=ESRI.ArcGIS.Client.Toolkit"             
    xmlns:System="clr-namespace:System;assembly=mscorlib"             
    x:Class="Silverlight.Arcgis.MapTip.CtlMapCenter" 
               xmlns:common="clr-namespace:System.Windows;assembly=System.Windows.Controls"

    >
    <UserControl.Resources>
        <ControlTemplate x:Key="CommonValidationToolTipTemplate" TargetType="ToolTip">
            <Grid x:Name="Root" Margin="5,0" Opacity="0" RenderTransformOrigin="0,0">
                <VisualStateManager.VisualStateGroups>
                    <VisualStateGroup x:Name="OpenStates">
                        <VisualStateGroup.Transitions>
                            <VisualTransition GeneratedDuration="0"/>
                            <VisualTransition GeneratedDuration="0:0:0.2" To="Open">
                                <Storyboard>
                                    <DoubleAnimation Duration="0:0:0.2" Storyboard.TargetName="Translation" Storyboard.TargetProperty="X" To="0">
                                        <DoubleAnimation.EasingFunction>
                                            <BackEase Amplitude=".3" EasingMode="EaseOut"/>
                                        </DoubleAnimation.EasingFunction>
                                    </DoubleAnimation>
                                    <DoubleAnimation Duration="0:0:0.2" Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity" To="1"/>
                                </Storyboard>
                            </VisualTransition>
                        </VisualStateGroup.Transitions>
                        <VisualState x:Name="Closed">
                            <Storyboard>
                                <DoubleAnimation Duration="0" Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity" To="0"/>
                            </Storyboard>
                        </VisualState>
                        <VisualState x:Name="Open">
                            <Storyboard>
                                <DoubleAnimation Duration="0" Storyboard.TargetName="Translation" Storyboard.TargetProperty="X" To="0"/>
                                <DoubleAnimation Duration="0" Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity" To="1"/>
                            </Storyboard>
                        </VisualState>
                    </VisualStateGroup>
                </VisualStateManager.VisualStateGroups>
                <Grid.RenderTransform>
                    <TranslateTransform x:Name="Translation" X="-25"/>
                </Grid.RenderTransform>
                <Border Margin="4,4,-4,-4" Background="#052A2E31" CornerRadius="5"/>
                <Border Margin="3,3,-3,-3" Background="#152A2E31" CornerRadius="4"/>
                <Border Margin="2,2,-2,-2" Background="#252A2E31" CornerRadius="3"/>
                <Border Margin="1,1,-1,-1" Background="#352A2E31" CornerRadius="2"/>
                <Border Background="#FFDC000C" CornerRadius="2">
                    <TextBlock Margin="8,4,8,4" MaxWidth="250" UseLayoutRounding="false" Foreground="#FFFFFFFF" Text="{Binding (Validation.Errors)[0].Exception.Message}" TextWrapping="Wrap"/>
                </Border>
            </Grid>
        </ControlTemplate>
        <Style x:Key="TreeViewStyle" TargetType="controls:TreeView">
            <Setter Property="Background" Value="#FFFFFFFF"/>
            <Setter Property="Foreground" Value="#FF000000"/>
            <Setter Property="HorizontalContentAlignment" Value="Left"/>
            <Setter Property="VerticalContentAlignment" Value="Top"/>
            <Setter Property="Cursor" Value="Arrow"/>
            <Setter Property="BorderThickness" Value="1"/>
            <Setter Property="Padding" Value="1"/>
            <Setter Property="BorderBrush" Value="#FF000000"/>
            <Setter Property="IsTabStop" Value="True"/>
            <Setter Property="TabNavigation" Value="Once"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="controls:TreeView">
                        <Grid>
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="MouseOver"/>
                                    <VisualState x:Name="Pressed"/>
                                    <VisualState x:Name="Disabled"/>
                                </VisualStateGroup>
                                <VisualStateGroup x:Name="FocusStates">
                                    <VisualState x:Name="Unfocused"/>
                                    <VisualState x:Name="Focused"/>
                                </VisualStateGroup>
                                <VisualStateGroup x:Name="ValidationStates">
                                    <VisualState x:Name="Valid"/>
                                    <VisualState x:Name="InvalidUnfocused">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Validation" Storyboard.TargetProperty="Visibility">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="InvalidFocused">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Validation" Storyboard.TargetProperty="Visibility">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ValidationToolTip" Storyboard.TargetProperty="IsOpen">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <System:Boolean>True</System:Boolean>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Margin="-1,0">
                                <Border Margin="1" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}">
                                    <ScrollViewer x:Name="ScrollViewer" Background="{x:Null}" BorderBrush="Transparent" BorderThickness="0" IsTabStop="False" TabNavigation="Once" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
                                        <ItemsPresenter Margin="5"/>
                                    </ScrollViewer>
                                </Border>
                            </Border>
                            <Border x:Name="Validation" Visibility="Collapsed" Grid.Column="1" BorderBrush="#FFDB000C" BorderThickness="{TemplateBinding BorderThickness}">
                                <ToolTipService.ToolTip>
                                    <ToolTip x:Name="ValidationToolTip" DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}" IsHitTestVisible="True" Template="{StaticResource CommonValidationToolTipTemplate}" Placement="Right" PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}"/>
                                </ToolTipService.ToolTip>
                                <Grid Height="10" HorizontalAlignment="Right" Margin="0,-4,-4,0" VerticalAlignment="Top" Width="10" Background="Transparent">
                                    <Path Fill="#FFDC000C" Margin="-1,3,0,0" Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 Z"/>
                                    <Path Fill="#FFFFFFFF" Margin="-1,3,0,0" Data="M 0,0 L2,0 L 8,6 L8,8"/>
                                </Grid>
                            </Border>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </UserControl.Resources>
    <Grid>

        <Grid.Resources>
            <esriSymbols:SimpleMarkerSymbol x:Name="RedMarkerSymbol" Color="Red" Size="12" Style="Circle" />
            <esriSymbols:PictureMarkerSymbol x:Name="BusPicMarkerSymbol" Source="/images/car-blue-24x24.png" OffsetX="10" OffsetY="10" />
            <esriSymbols:PictureMarkerSymbol x:Name="StationPicMarkerSymbol" Source="/images/sphere-blue-dark-16x16.png" OffsetX="8" OffsetY="8" />
            <esriSymbols:SimpleLineSymbol x:Name="RedLineSymbol" Color="Red" Width="4" Style="Solid" />
            <esriSymbols:CartographicLineSymbol x:Name="CartoLineSymbol" Color="Red" Width="10" DashCap="Triangle" LineJoin="Round" DashArray="6,2" />
            <esriSymbols:SimpleFillSymbol x:Name="RedFillSymbol" Fill="#66FF0000" BorderBrush="Red" BorderThickness="2" />
        </Grid.Resources>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="17"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition  Height="45"/>
            <RowDefinition  Height="*"/>
        </Grid.RowDefinitions>

        <Grid Margin="0" Grid.Column="1" Grid.RowSpan="2">
            <Border x:Name="arrow"
			  MouseLeftButtonDown="arrow_MouseLeftButtonDown" Margin="0" BorderBrush="#FF9FBFE9" BorderThickness="1" CornerRadius="3" Height="15" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5" Width="15" UseLayoutRounding="False" d:LayoutRounding="Auto" HorizontalAlignment="Center" Cursor="Hand">
                <Border.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="White"/>
                        <GradientStop Color="#FFF8FAFD" Offset="1"/>
                        <GradientStop Color="#FFD7EAFE" Offset="0.764"/>
                        <GradientStop Color="#FFCFE4FB" Offset="0.451"/>
                    </LinearGradientBrush>
                </Border.Background>
                <Border.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform  x:Name="arrowAngle" Angle="-90"/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Border.RenderTransform>
                <StackPanel Margin="3,2,3,3" Orientation="Vertical" d:LayoutOverrides="Height">
                    <Path Stretch="Fill" Stroke="#FF5484B3" Height="4.166" Margin="0,0,0.187,0" UseLayoutRounding="False" Data="M6.3541665,98.395836 L9.4793291,101.56233 L12.167132,98.520683"/>
                    <Path Stretch="Fill" Stroke="#FF5484B3" Height="4.166" Margin="0,0,0.187,0" UseLayoutRounding="False" Data="M6.3541665,98.395836 L9.4793291,101.56233 L12.167132,98.520683"/>
                </StackPanel>
            </Border>

        </Grid>


        <Grid x:Name="BorderRight" Grid.Column="2" Grid.RowSpan="2">
            <Grid x:Name="GridIndex" SizeChanged="GridIndex_SizeChanged">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <!--==按钮列表==-->

                <!--工具栏-->
                <Grid HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Row="0">
                    <Rectangle Fill="#357AC0ED" Stroke="Gray"  RadiusX="10" RadiusY="10" Margin="0,0,0,5" />
                    <StackPanel Orientation="Vertical" x:Name="stackPanelMenu">
                        <TextBlock x:Name="StatusTextBlock" Text="" FontWeight="Bold" HorizontalAlignment="Center"/>
                        <esriToolkit:Toolbar x:Name="MyToolbar" MaxItemHeight="50" MaxItemWidth="50"
                    Grid.Row="0" VerticalAlignment="Top" HorizontalAlignment="Center"
                    Loaded="MyToolbar_Loaded"
                    ToolbarItemClicked="MyToolbar_ToolbarItemClicked" 
                    ToolbarIndexChanged="MyToolbar_ToolbarIndexChanged">
                            <esriToolkit:Toolbar.Items>
                                <esriToolkit:ToolbarItemCollection>
                                    <!--==放大==-->
                                    <esriToolkit:ToolbarItem Text="放大">
                                        <esriToolkit:ToolbarItem.Content>
                                            <Image Stretch="UniformToFill" Margin="5" Source="/images/i_zoomin.png" Width="20" Height="20" />
                                        </esriToolkit:ToolbarItem.Content>
                                    </esriToolkit:ToolbarItem>
                                    <!--==缩小==-->
                                    <esriToolkit:ToolbarItem Text="缩小">
                                        <esriToolkit:ToolbarItem.Content>
                                            <Image Source="/images/i_zoomout.png" Stretch="UniformToFill" Margin="5" Width="20" Height="20" />
                                        </esriToolkit:ToolbarItem.Content>
                                    </esriToolkit:ToolbarItem>
                                    <!--==平移==-->
                                    <esriToolkit:ToolbarItem Text="平移">
                                        <esriToolkit:ToolbarItem.Content>
                                            <Image Source="/images/i_pan.png" Stretch="UniformToFill" Margin="5" Width="20" Height="20" />
                                        </esriToolkit:ToolbarItem.Content>
                                    </esriToolkit:ToolbarItem>
                                    <!--==前一视图==-->
                                    <esriToolkit:ToolbarItem Text="前一视图" >
                                        <esriToolkit:ToolbarItem.Content>
                                            <Image Source="/images/i_previous.png" IsHitTestVisible="False" Opacity="0.3" Stretch="UniformToFill" Margin="5" Width="20" Height="20"/>
                                        </esriToolkit:ToolbarItem.Content>
                                    </esriToolkit:ToolbarItem>
                                    <!--==后一视图==-->
                                    <esriToolkit:ToolbarItem Text="后一视图">
                                        <esriToolkit:ToolbarItem.Content>
                                            <Image Source="/images/i_next.png" IsHitTestVisible="False" Opacity="0.3" Stretch="UniformToFill" Margin="5" Width="20" Height="20"/>
                                        </esriToolkit:ToolbarItem.Content>
                                    </esriToolkit:ToolbarItem>
                                    <!--==全图显示==-->
                                    <esriToolkit:ToolbarItem Text="全图显示">
                                        <esriToolkit:ToolbarItem.Content>
                                            <Image Source="/images/i_globe.png" Stretch="UniformToFill" Margin="5" Width="20" Height="20" />
                                        </esriToolkit:ToolbarItem.Content>
                                    </esriToolkit:ToolbarItem>
                                    <!--==全线路显示==-->
                                    <esriToolkit:ToolbarItem Text="全线路显示">
                                        <esriToolkit:ToolbarItem.Content>
                                            <Image Source="/Icons/32/bt_全局-起点终点.png" Stretch="UniformToFill" Margin="5" Width="20" Height="20" />
                                        </esriToolkit:ToolbarItem.Content>
                                    </esriToolkit:ToolbarItem>
                                    <!--==底图显示/隐藏==-->
                                    <esriToolkit:ToolbarItem Text="底图显示/隐藏">
                                        <esriToolkit:ToolbarItem.Content>
                                            <Image Source="/Icons/32/portraitlandscape.png" Stretch="UniformToFill" Margin="5" Width="20" Height="20" />
                                        </esriToolkit:ToolbarItem.Content>
                                    </esriToolkit:ToolbarItem>
                                    <!--==盲区显示/隐藏==-->
                                    <esriToolkit:ToolbarItem Text="盲区显示/隐藏">
                                        <esriToolkit:ToolbarItem.Content>
                                            <Image Source="/Icons/32/bt_调度控制.png" Stretch="UniformToFill" Margin="5" Width="20" Height="20" />
                                        </esriToolkit:ToolbarItem.Content>
                                    </esriToolkit:ToolbarItem>
                                    <!--==车辆模拟行驶==-->
                                    <esriToolkit:ToolbarItem Text="车辆模拟行驶">
                                        <esriToolkit:ToolbarItem.Content>
                                            <Image Source="/images/car-blue-32x32.png" Stretch="UniformToFill" Margin="5" Width="20" Height="20" />
                                        </esriToolkit:ToolbarItem.Content>
                                    </esriToolkit:ToolbarItem>
                                </esriToolkit:ToolbarItemCollection>
                            </esriToolkit:Toolbar.Items>
                        </esriToolkit:Toolbar>
                    </StackPanel>
                </Grid>
                <!--<StackPanel x:Name="BtnTool" Grid.Row="0" Orientation="Horizontal"> 
                    <Button x:Name="BtnAmplifier" Content="放大" ToolTipService.ToolTip="放大" Width="100" Click="BtnAmplifier_Click"/>
                    <Button x:Name="BtnNarrow" Content="缩小" ToolTipService.ToolTip="缩小" Width="100"/>
                    <Button x:Name="BtnTranslation" Content="平移" ToolTipService.ToolTip="平移" Width="100"/>
                    <Button x:Name="BtnPrintRoute" Content="全线路显示" ToolTipService.ToolTip="全线路显示" Width="100"/>
                    <Button x:Name="BtnPrintOrCancelBaseMap" Content="底图显示/隐藏" ToolTipService.ToolTip="底图显示/隐藏" Width="100"/>
                    <Button x:Name="BtnPrintOrCancelBliendArea" Content="盲区显示/隐藏" ToolTipService.ToolTip="盲区显示/隐藏" Width="100"/>
                    <Button x:Name="BtnTest" Content="Test" ToolTipService.ToolTip="Test" Width="100"/>

                </StackPanel>-->




                <!--==选中线路或者车辆后显示的信息==-->
                <!--<Border BorderBrush="Gray" BorderThickness="1" Padding="8" Grid.Row="1">                     
                    <StackPanel x:Name="DetailsPanel" Margin="4" Orientation="Horizontal"> 
                        <TextBlock Text="版块ID：" FontWeight="Bold" Height="30"/>
                        <TextBox Text="{Binding ForumID}" Height="30" Width="100"/>
                        <TextBlock Text="版块名称：" FontWeight="Bold" Height="30"/>
                        <TextBox Text="{Binding ForumName}" Height="30" Width="100"/>
                        <TextBlock Text="版块信息: " FontWeight="Bold" Height="30"/>
                        <TextBox x:Name="DetailText" TextWrapping="Wrap" Text="{Binding ForumName}" Height="30" Width="100"/>
                    </StackPanel>                    
              
                </Border>-->
                <!--==显示区==
                http://192.168.58.229/ArcGIS/rest/services/Shanghai/MapServer
                -->
                <Border  Grid.Row="1" BorderBrush="Gray" BorderThickness="1" Padding="8">

                    <Grid>
                        <esri:Map x:Name="Map1" MouseMove="Map1_MouseMove"  Progress="Map1_Progress"  ExtentChanged="Map1_ExtentChanged">
                            <esri:GraphicsLayer ID="gLayer"></esri:GraphicsLayer>
                        </esri:Map>
                        <!-- 鹰眼  -->
                        <Grid HorizontalAlignment="Right" Width="153" Canvas.ZIndex="100"   VerticalAlignment="Bottom" Height="106" >
                            <Border CornerRadius="10,10,10,10" Background="#ff355672" Grid.Row="1" Grid.Column="1">
                                <esriToolkit:OverviewMap x:Name="MyOverviewMap" Margin="8,8,8,8" MaximumExtent="-180,-90,180,90">
                                </esriToolkit:OverviewMap>
                            </Border>
                        </Grid>
                        <!-- 鹰眼  End-->
                    </Grid>


                </Border>
            </Grid>
        </Grid>



        <!--==线路车辆树==-->
        <Grid x:Name="History" Margin="0" Grid.RowSpan="2">
            <Grid        	
        		HorizontalAlignment="Left" Margin="0,45,0,0" Width="200" Background="{x:Null}" >
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="114"/>
                    <RowDefinition Height="120"/>
                    <RowDefinition Height="58"/>
                </Grid.RowDefinitions>
                <Border Grid.Row="0" BorderThickness="1,0,1,1">

                    <controls:TreeView x:Name="TreeOfLife" SelectedItemChanged="TreeOfLife_SelectedItemChanged" BorderThickness="1,0,1,1" Style="{StaticResource TreeViewStyle}" Margin="0,0,0,-1">
                        <controls:TreeView.ItemContainerStyle>
                            <Style TargetType="controls:TreeViewItem">
                                <Setter Property="IsExpanded" Value="false" />
                            </Style>
                        </controls:TreeView.ItemContainerStyle>
                        <controls:TreeView.ItemTemplate>
                            <common:HierarchicalDataTemplate ItemsSource="{Binding Childs}">
                                <StackPanel Orientation="Horizontal" ToolTipService.ToolTip="{Binding ForumName}">
                                    <StackPanel>
                                        <TextBlock Text="{Binding ForumName}" />
                                    </StackPanel>
                                    <CheckBox IsTabStop="False"  Visibility="{Binding CheckBoxVisibility}" IsThreeState="False"  IsChecked="{Binding RouteVisible, Mode=TwoWay}"/>
                                    <TextBlock Text="线路" ToolTipService.ToolTip="显示隐藏线路" Visibility="{Binding CheckBoxVisibility}" ></TextBlock>
                                    <CheckBox IsTabStop="False"  Visibility="{Binding CheckBoxVisibility}" IsThreeState="False" IsChecked="{Binding StationLabelVisible, Mode=TwoWay}"/>
                                    <TextBlock Text="标注"  ToolTipService.ToolTip="显示隐藏站点标注" Visibility="{Binding CheckBoxVisibility}" ></TextBlock>
                                </StackPanel>



                            </common:HierarchicalDataTemplate>
                        </controls:TreeView.ItemTemplate>
                    </controls:TreeView>


                </Border>

                <Border BorderThickness="1,0,1,1" BorderBrush="Black"  Grid.Row="1">
                    <StackPanel Orientation="Vertical">
                        <TextBlock x:Name="TBscreencoords"
        					HorizontalAlignment="Left" VerticalAlignment="Center" Text="屏幕坐标：" TextWrapping="Wrap" FontWeight="Bold" />
                        <TextBlock x:Name="TBmapcoords"
        					HorizontalAlignment="Left" VerticalAlignment="Center" Text="地图坐标：" TextWrapping="Wrap" FontWeight="Bold" />
                    </StackPanel>
                </Border>
                <Border BorderThickness="1,0,1,1" BorderBrush="Black"  Grid.Row="2">
                    <StackPanel Orientation="Vertical">
                        <TextBlock x:Name="tblBusInfo"
        					HorizontalAlignment="Left" VerticalAlignment="Center" Text="车辆信息：" TextWrapping="Wrap" FontWeight="Bold" />
                    </StackPanel>
                </Border>

                <Border BorderThickness="1,0,1,1"  Grid.Row="3" VerticalAlignment="Top" d:LayoutOverrides="Height" BorderBrush="Black">
                    <Grid HorizontalAlignment="Center" x:Name="progressGrid" VerticalAlignment="Center" Width="200" Height="20" >
                        <ProgressBar x:Name="MyProgressBar" Minimum="0" Maximum="100" />
                        <TextBlock x:Name="ProgressValueTextBlock" Text="100%" HorizontalAlignment="Center" VerticalAlignment="Center" />
                    </Grid>
                </Border>
            </Grid>

            <Grid Height="45" VerticalAlignment="Top">
                <ContentControl Content="线路车辆" HorizontalAlignment="Left" Margin="22,15,0,6"/>
                <Image Source="/Icons/16/inserthyperlink.png" HorizontalAlignment="Left" Width="13" Margin="5,0,0,0"/>
            </Grid>
            <Border BorderBrush="Black" BorderThickness="1" Height="45" VerticalAlignment="Top"/>
        </Grid>

    </Grid>
</UserControl>
